![]() |
GetThemeWindowRegionHit |
||||
Header: | Appearance.h | Carbon status: | Supported | |
Obtains the part of the window that the user clicked upon.
Boolean GetThemeWindowRegionHit ( ThemeWindowType flavor, const Rect *inContRect, ThemeDrawState state, const ThemeWindowMetrics *metrics, ThemeWindowAttributes inAttributes, Point inPoint, WindowRegionCode *outRegionHit );
A value of type ThemeWindowType. Pass a constant specifying the type of window to be examined. See
A pointer to a structure of type Rect. Before calling GetThemeWindowRegionHit, set rectangle to the content area of the window, specified in coordinates local to the current port.
A value of type ThemeDrawState. Pass a constant—either kThemeStateActive or kThemeStateInactive—appropriate to the current state of the window. See
A pointer to a structure of type ThemeWindowMetrics. Before calling GetThemeWindowRegionHit, set the structure to contain information describing the window.
A value of type ThemeWindowAttributes. Pass one or more constants corresponding to the window’s current visual attributes. See
A structure of type Point. Pass the point, specified in specified in coordinates local to the current port, where the mouse-down event occurred. Your application may retrieve this value from the where field of the event structure.
A pointer to a value of type WindowRegionCode. On return, the value is set to the region code of the window part in which the point passed in the inPoint parameter is located.
A value of type Boolean. If true, the mouse-down event occurred inside the window; otherwise, false.
Your window definition function should call the GetThemeWindowRegionHit function to determine where a specified mouse-down event occurred.
This function is available with Appearance Manager 1.1 and later.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)